/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package eit.dao.rowmapper;

import eit.model.Tag ;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

/**
 *
 * @author acoustic
 */
public class TagRowMapper implements RowMapper
{

	@Override
	public Object mapRow(ResultSet _resultSet, int i) throws SQLException
	{
		Tag queryTag = new Tag() ;
		
			queryTag.setID(_resultSet.getInt("ID"));
			queryTag.setName(_resultSet.getString("Name"));
		
		return queryTag ;
	}
	
}
